-- GENERATED SPELL FOR [Father Jhadras] --


function spell0_31191(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_31191', 3500, 1)
end

function spell1_31191(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31191', 2500, 1)
end

function Sorts_31191(pUnit, Event)
local choix_sorts_31191 = math.random(0, 1)
if choix_sorts_31191 == 0 then
pUnit:RegisterEvent('spell0_31191', 1, 1)
end
if choix_sorts_31191 == 1 then
pUnit:RegisterEvent('spell1_31191', 1, 1)
end
end

function mob31191_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31191', math.random(1500, 3000), 1)
end

function mob31191_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31191_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31191_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31191, 1, 'mob31191_Action')
RegisterUnitEvent(31191, 2, 'mob31191_Leave')
RegisterUnitEvent(31191, 3, 'mob31191_Kill')
RegisterUnitEvent(31191, 4, 'mob31191_Die')
